ImageGear Professional v18.1 > User Guide > Getting Started > Developing an Application > Loading an Image |
Choose File > Open....
The key ImageGear call used is IG_load_file(). We use NSOpenPanel dialog to select an image file. All related calls are encapsulated in the mnuFileOpen action in our Sample. Please see NSOpenPanel Class Reference for details.
The image will be displayed.
Here is the segment of code that demonstrates this operation:
Copy Code
|
|
---|---|
- (IBAction)mnuFileOpen:(id)sender { // Update main view |